//
//  HomeMenuCell.m
//  carowner
//
//  Created by apple on 2019/5/21.
//  Copyright © 2019 ggj. All rights reserved.
//

#import "HomeMenuCell.h"

@implementation HomeMenuCell

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if(self){
        
        _menuView = [[UIImageView alloc] init];
        _menuLabel = [[UILabel alloc] init];
        _menuLabel.textColor = title_color;
        _menuLabel.font = textFont;
        
        [self addSubview:_menuView];
        [self addSubview:_menuLabel];
        
        [_menuView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self);
            make.top.equalTo(self);
            make.size.mas_equalTo(CGSizeMake(45, 45));
        }];
        
        [_menuLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self);
            make.bottom.equalTo(self).offset(-10);
        }];
        
    }
    return self;
}

@end
